// FILEPATH: src/modules/Rally-rule/entities/Rally-rule.entity.ts

import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity()
export class RallyRule {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  name: string;

  @Column({ name: 'game_point' })
  gamePoint: number;

  @Column({ name: 'max_winning_rally' })
  maxWinningRally: number;

  @Column({ name: 'min_winning_rally' })
  minWinningRally: number;

  @Column({ name: 'rest_rallies', type: 'simple-array' })
  restRallies: number[];
}
